package com.jiangyao.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 匹配表
 * </p>
 *
 * @author yych
 * @since 2019-10-16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Config extends Model<Config> {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	/**
	 * 键
	 */
	private String code;

	/**
	 * 值
	 */
	private String value;

	/**
	 * 备注
	 */
	private String remark;

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Config{" +
				"id=" + id +
				", code=" + code +
				", value=" + value +
				", remark=" + remark +
				"}";
	}
}
